package com.cash.loan.modular.cash.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 用户登录表
 * </p>
 *
 * @author yangbo123
 * @since 2018-07-11
 */
@TableName("cash_user_login")
public class CashUserLogin extends Model<CashUserLogin> {

    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 注册手机号
     */
    private String phone;
    /**
     * md5密码
     */
    private String password;
    /**
     * imei手机唯一标识码
     */
    private String deviceId;
    /**
     * 用户ip
     */
    private String ip;
    /**
     * 用户状态 -1无imei码 0未注册 1已注册 2身份证已实名
     */
    private Long userFlag;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 修改时间
     */
    private Date modifyTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Long getUserFlag() {
        return userFlag;
    }

    public void setUserFlag(Long userFlag) {
        this.userFlag = userFlag;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "CashUserLogin{" +
        "id=" + id +
        ", phone=" + phone +
        ", password=" + password +
        ", deviceId=" + deviceId +
        ", ip=" + ip +
        ", userFlag=" + userFlag +
        ", createTime=" + createTime +
        ", modifyTime=" + modifyTime +
        "}";
    }
}
